//
//  OAddInforComment.m
//  OFootball
//
//  Created by 上官千城 on 15/9/24.
//  Copyright (c) 2015年 上官千城. All rights reserved.
//

#import "OAddInforComment.h"

@implementation OAddInforComment
-(instancetype) initWithCallBack:(SEL)callBack for:(NSObject *)recvObjc
{
    return [super initWithName:@"OAddInforComment" recvObjc:recvObjc callBack:callBack];
}

-(void) request
{
    NSDictionary* params = @{
        @"inforId":[NSString stringWithFormat:@"%ld",self.inforId],
        @"backCommId":[NSString stringWithFormat:@"%ld",self.backCommId],
        @"content":self.content
                             };
    [self send:params];
}


-(void) run:(NSData *)data erc:(NSInteger)erc
{
    //TODO:
    NSLog(@"login succ %ld",erc);
    if (erc != SUCC) {
        NSString *str = [NSString stringWithFormat:@"登录失败erc= %ld",erc];
        
        [UIUtils showAlert:@"提示" message:str left:@"退出" right:nil delegate:nil];
        return;
    }
    
    NSDictionary* dic = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:nil];
    
    self.dataDic = dic;
    
    NSLog(@"%@",dic);
    
    
    
    [self mu];
}
@end
